            <div id="content"> <!-- Content begins here -->
                
                <?php echo $this->element('admin/flash') ?>
                <div class="clear"></div>
                <h2>
                    <?php if($type=='hold'): ?>
                    Pending Users (Awating for moderation)
                    <?php elseif($type=='banned'): ?>
                    Banned Users
                    <?php else: ?>
                    Public Users
                    <?php endif ?>
                </h2>
                    <?php if($count_active) : ?>
                        <a class="btn" href="<?php echo $html->url(array('controller'=>'users','action'=>'public')) ?>"><b>Active Users <?php echo "($count_active)" ?></b></a>
                    <?php endif ?>
                    <?php if($count_banned) : ?>
                        <a class="btn ml10" href="<?php echo $html->url(array('controller'=>'users','action'=>'public','banned')) ?>"><b>Banned Users <?php echo "($count_banned)" ?></b></a>
                    <?php endif ?>
                    <?php if($count_hold) : ?>  
                        <a class="btn ml10" href="<?php echo $html->url(array('controller'=>'users','action'=>'public','hold')) ?>"><b>Pending Users <?php echo "($count_hold)" ?></b></a>
                    <?php endif ?>
                        
                    
                <div class="clear"></div>
                
                <table cellspacing="0" cellpadding="0" border="0"><!-- Table -->
                    <thead>
                        <tr>
                            <th>Username</th>
                            <th>Name</th>
                            <th>Email</th>
                            <th>Location</th>
                            <th>Last Login Ip</th>
                            <th>Date Created</th>
                            <th>Actions</th>
                        </tr>
                    </thead>
                
                    <tbody>
                        <?php if($users):
                                foreach($users as $row):
                        ?>
                        <tr>
                            
                            <td><?php echo substr($row['User']['username'],0,200) ?></td>
                            <td><?php echo substr($row['User']['name'],0,200) ?></td>
                            <td><?php echo substr($row['User']['email'],0,200) ?></td>
                            <td><?php echo substr($row['User']['location'],0,200) ?></td>
                            <td><?php echo substr($row['User']['ip'],0,200) ?></td>
                            <td><?php echo substr($row['User']['created'],0,200) ?></td>
                            
                            <td>
                                <?php if($row['User']['status'] == 'hold') : ?>
                                    <a href="<?php echo $html->url(array('controller' => 'users', 'action' => 'active', $row['User']['id'])); ?>" title="Activate this user"><?php echo $html->image('assets/action_check.png') ?></a>
                                <?php endif; ?>
                                <?php if($row['User']['status'] == 'active') : ?>
                                    <a href="<?php echo $html->url(array('controller' => 'users', 'action' => 'ban', $row['User']['id'])); ?>" title="Ban this user"><?php echo $html->image('assets/action_remove.png') ?></a>
                                <?php endif; ?>
                                <?php if($row['User']['status'] == 'banned') : ?>
                                    <a href="<?php echo $html->url(array('controller' => 'users', 'action' => 'active', $row['User']['id'])); ?>" title="Unban this user"><?php echo $html->image('assets/action_edit.png') ?></a>
                                <?php endif; ?>
                                <?php if($user['User']['group_id'] == 1) : ?>
                                    <a href="<?php echo $html->url(array('controller'=>'users','action'=>'profile',$row['User']['id'])) ?>" title="click to edit this user"><?php echo $html->image('assets/action_add.png') ?></a>
                                <?php endif; ?>
                                <a href="<?php echo $html->url(array('controller'=>'users','action'=>'delete',$row['User']['id'])) ?>" onclick="return confirm('Are You Sure?')" title="click to delete this user"><?php echo $html->image('assets/action_delete.png') ?></a>
                            </td>
                        </tr>
                        <?php endforeach;
                            else:
                        ?>
                        <tr>
                            
                            <td colspan="7">No data avilable in range</td>
                            
                        </tr>
                        <?php endif ?>
                        
                        
                        
                    </tbody>
                </table> <!-- END Table -->
                
                <?php 
            
                $paginator->options(array('url'=>$this->passedArgs));
                
                    
                    echo '<div class="paginator">';
                                
                    if($paginator->hasPrev()) echo $paginator->prev('Previous', array('class'=>'next page-numbers', 'escape' => false));
                    echo $paginator->numbers(
                        array(
                            'class' => 'page-numbers', 
                            'separator' => ' ', 
                            'before' => ' ',
                            'after' => ' ',
                        )
                    );
                    if($paginator->hasNext()) echo $paginator->next('Next', array('class'=>'next page-numbers', 'escape' => false));
                    echo '</div>';
                    echo '<span class="displaying-num fR" style="margin:18px">'.$paginator->counter(array(
                        'format' => __('Displaying %start%&ndash;%end% of %count%', true)
                    )).'</span>';
                    
                ?>

            
        </div> <!-- END Content -->
        